The Database API > Database API functions > MMDB.getConnectionString()

 

MMDB.getConnectionString()

Availability

Dreamweaver UltraDev 1.0

Description

Gets the connection string associated with the specified connection name.

Arguments

connName

connName is an UltraDev connection name as specified in the Connection Manager. It is used to make a database connection to a live data source.

Returns

A string corresponding to the connection name.

Example

The code var connectionString = MMDB.getConnectionString ("EmpDB") returns different strings for an ADO or JDBC connection.

For an ADO connection, the following string could be returned:

"dsn=EmpDB;uid=;pwd=";

For a JDBC connection, the following string could be returned:

"jdbc:inetdae:192.168.64.49:1433?database=pubs&user=JoeUser&¬
password=joesSecret"